<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no, email=no"/>
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <title>实景复刻-评论</title>
    <link rel="stylesheet" href="../css/style.css">
    <link rel="stylesheet" href="../css/jd.css">
    <link rel="shortcut icon" href="../images/16x16-icon.png" type="image/x-icon" />
    <style>
        .mp_list{
            margin-top: 20px;
            width:90%;
            margin-left: 10%;
        }
        .mp_list p{
            line-height: 1.4;
            font-size: 15px;
            text-indent:15px;
        }
        .bkbubble{
            display: inline-block;

        }
    </style>
</head>
<body>
    <div id="chatcontent" class="content chat-block" tabindex="0" >
        <div class="jimi_lists clearfix">
           <!-- <div class="header_img jimi3 fl"></div>-->
            <div class="bkbubble right">
                <p>换个气泡如何</p>
            </div>
        </div>
    </div>
<!--评论部分-->
<div class="comment">
    <div id="cm_input" contenteditable="true"></div>
    <div id="cm_submit" align="center">
        <a onclick="bindEvevt()">发送</a>
    </div>
</div>

<script src="../js/jquery-1.10.1.min.js"></script>
<script src="../js/common.js"></script>
<script src="../js/jquery.barrager.js"></script>
<script>
    var custId = getQueryString('fort');
   /*  //发送弹幕
     $(window).on("load",function() {
     query_comment(custId);
     });*/
    $.ajax({
        type: 'GET',
        url: "http://47.93.18.177:8081/comment/query?mp_id="+custId,
        dataType: 'json',
        data: {},
        success: function(data){
            console.log(data)
            $.each(data,function (idx, data) {
                console.log(data)
                var str = '<p>'+data.comment+'</p>';
                $('.bkbubble').append(str);
            })
        },
        error:function(data) {
            console.log(data.msg);
        }
    });
     function bindEvevt() {
         var valueCm = $('#cm_input').html() // 评论内容
         submit_comment(custId,valueCm)
     }
</script>
</body>
</html>